package org.jeecg.modules.flow.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @Description: flow_audit
 * @Author: jeecg-boot
 * @Date: 2021-11-08
 * @Version: V1.0
 */
@Data
@TableName("flow_audit")
@ApiModel(value = "flow_audit对象", description = "flow_audit")
public class FlowAudit implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId(type = IdType.AUTO)
    @ApiModelProperty(value = "id")
    private Integer id;
    /**
     * 实例ID
     */
    @Excel(name = "实例ID", width = 15)
    @ApiModelProperty(value = "实例ID")
    private String processInstanceId;
    /**
     * 任务ID
     */
    @Excel(name = "任务ID", width = 15)
    @ApiModelProperty(value = "任务ID")
    private String taskId;
    /**
     * 审核者ID
     */
    @Excel(name = "审核者ID", width = 15)
    @ApiModelProperty(value = "审核者ID")
    private String auditUserId;
    /**
     * 审核者名称
     */
    @Excel(name = "审核者名称", width = 15)
    @ApiModelProperty(value = "审核者名称")
    private String auditUserName;
    /**
     * 审核意见
     */
    @Excel(name = "审核意见", width = 15)
    @ApiModelProperty(value = "审核意见")
    private String auditInfo;
    /**
     * 审核时间
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(value = "审核时间")
    private Date createTime;
    /**
     * 关联业务
     */
    @Excel(name = "关联业务", width = 15)
    @ApiModelProperty(value = "关联业务")
    private String businessKey;

    /**
     * 机构ID
     */
    @Excel(name = "机构ID", width = 15)
    @ApiModelProperty(value = "机构ID")
    private String orgId;
    /**
     * 操作类型 1、同意2、撤回、3终结
     */
    @Excel(name = "操作类型", width = 15)
    @ApiModelProperty(value = "操作类型 1、同意2、撤回、3终结")
    private Integer operationType;
}
